package com.bxait.toymail.seckill.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/*
@description:  rabbitmq的配置,使用json进行序列化存储
@ClassName MyRabbitConfig
@author Chen
@create 2023-04-30 9:47
@Version 1.0
*/
@Configuration
public class MyRabbitConfig {
    @Bean
    public MessageConverter messageConverter(){
        return new Jackson2JsonMessageConverter();
    }
}
